import request from "../request.ts"

export const getParentCategoryStatisticsApi = () => {
    return request({
        url: "/api/statistics/parent-category",
        method: "GET"
    })
}

/**
 * 
 * @param id 大类别ID
 * @returns 数据集数组
 */
export const getSubCategoryStatisticsApi = (id:number) => {
    return request({
        url: "/api/statistics/child-category/" + id,
        method: "GET"
    })
}

export const getImageAmount = () => {
    return request({
        url: "/api/statistics/image",
        method: "GET"
    })
}